package co.yixiang.retail.common.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import co.yixiang.common.mproot.domain.BaseDomain;
import co.yixiang.mall.common.mall.domain.YxUser;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "yx_system_store")
public class YxSystemStore extends BaseDomain {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String phone;
    private String address;
    private String detailedAddress;
    private String image;
    private String latitude;
    private String longitude;
    private String validTime;
    private String dayTime;
    private Date createTime;
    private Date updateTime;
    private Integer isShow;
    private Integer isDel;
    private Date dayTimeEnd;
    private Date dayTimeStart;
    private Date validTimeEnd;
    private Date validTimeStart;
    private Integer retailType;
    private Integer permit;
    private Integer auditStatus;
    private Integer rejectcause;
    private String retailUser;
    private long userId;
    private Integer isDisable;
    /**
     * 用户余额
     */
    @TableField(exist = false)
    private BigDecimal nowMoney;
    /**
     * 佣金金额
     */
    @TableField(exist = false)
    private BigDecimal brokeragePrice;
    /**
     * 真实姓名
     */
    @TableField(exist = false)
    private String realName;
    /**
     * 用户剩余积分
     */
    @TableField(exist = false)
    private BigDecimal Integral;

    /**头像*/
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private BigDecimal storeBalance;


}
